package bean;

/**
 * Created by shiyanqi on 19/4/12.
 */
public class TicketBean {

    private String trade_no; //系统核销单号,核销成功才返回 GF_ONLINE_MALL:核销成功时,返回最新一笔核销记录的单号.
    private String up_trade_no; //渠道方核销单号,核销成功才返回 GF_ONLINE_MALL:核销成功时,返回最新一笔核销记录的单号.
    private String trade_status; //凭证码状态 USED:该券已经被消费,无法核销
    //EFFECTIVE:未核销，且可以在当前门店核销
    //UN_EFFECTIVE:未核销，但不可以在当前门店核销
    //REFUNDED:该券已经退款,无法核销
    //USING:核销处理中,无法核销
    //REFUNDING:退款处理中,无法核销
    private String pay_channel; //核销渠道 ALIPAY_KOUBEI:口碑团购 GF_ONLINE_MALL:广分线上商城
    private int total_amount; //商品原价 (分) GF_ONLINE_MALL:表示的是一个商品的原始单价
    private int current_amount; //商品现价 (分) GF_ONLINE_MALL:表示的是顾客购买此商品时的实际单价
    private String item_name; //商品名字
    private String item_id; //商品ID
    private String ticket_code; //核销凭证码
    private int seller_amount; //商家实收金额 GF_ONLINE_MALL:表示的是顾客购买时的单价*目前已经核销的总份数
    private int seller_coupon; //商户优惠金额(分)
    private int buyer_amount; //用户实付金额(分) GF_ONLINE_MALL:表示的是顾客购买时的单价*当时购买的总份数
    private int chn_coupon; //渠道优惠金额(分)
    private String buyer_id; //买家付款账户 GF_ONLINE_MALL:返回微信SUBOPENID
    private String store_code; //广分门店号
    private String dev_id; //终端设备号
    private String oper_id; //操作员工号
    private String used_time; //核销时间,核销成功才有返回 GF_ONLINE_MALL:核销成功时,返回最新一笔核销记录的核销时间.
    private int total_quantity; //渠道为GF_ONLINE_MALL才有返回. 表示这个凭证号对应的总共的份数
    private int available_quantity; //渠道为GF_ONLINE_MALL才有返回. 表示这个凭证号对应的目前可以被核销的可用份数

    public String getTrade_no() {
        return trade_no;
    }

    public void setTrade_no(String trade_no) {
        this.trade_no = trade_no;
    }

    public String getUp_trade_no() {
        return up_trade_no;
    }

    public void setUp_trade_no(String up_trade_no) {
        this.up_trade_no = up_trade_no;
    }

    public String getTrade_status() {
        return trade_status;
    }

    public void setTrade_status(String trade_status) {
        this.trade_status = trade_status;
    }

    public String getPay_channel() {
        return pay_channel;
    }

    public void setPay_channel(String pay_channel) {
        this.pay_channel = pay_channel;
    }

    public int getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(int total_amount) {
        this.total_amount = total_amount;
    }

    public int getCurrent_amount() {
        return current_amount;
    }

    public void setCurrent_amount(int current_amount) {
        this.current_amount = current_amount;
    }

    public String getItem_name() {
        return item_name;
    }

    public void setItem_name(String item_name) {
        this.item_name = item_name;
    }

    public String getItem_id() {
        return item_id;
    }

    public void setItem_id(String item_id) {
        this.item_id = item_id;
    }

    public String getTicket_code() {
        return ticket_code;
    }

    public void setTicket_code(String ticket_code) {
        this.ticket_code = ticket_code;
    }

    public int getSeller_amount() {
        return seller_amount;
    }

    public void setSeller_amount(int seller_amount) {
        this.seller_amount = seller_amount;
    }

    public int getSeller_coupon() {
        return seller_coupon;
    }

    public void setSeller_coupon(int seller_coupon) {
        this.seller_coupon = seller_coupon;
    }

    public int getBuyer_amount() {
        return buyer_amount;
    }

    public void setBuyer_amount(int buyer_amount) {
        this.buyer_amount = buyer_amount;
    }

    public int getChn_coupon() {
        return chn_coupon;
    }

    public void setChn_coupon(int chn_coupon) {
        this.chn_coupon = chn_coupon;
    }

    public String getBuyer_id() {
        return buyer_id;
    }

    public void setBuyer_id(String buyer_id) {
        this.buyer_id = buyer_id;
    }

    public String getStore_code() {
        return store_code;
    }

    public void setStore_code(String store_code) {
        this.store_code = store_code;
    }

    public String getDev_id() {
        return dev_id;
    }

    public void setDev_id(String dev_id) {
        this.dev_id = dev_id;
    }

    public String getOper_id() {
        return oper_id;
    }

    public void setOper_id(String oper_id) {
        this.oper_id = oper_id;
    }

    public String getUsed_time() {
        return used_time;
    }

    public void setUsed_time(String used_time) {
        this.used_time = used_time;
    }

    public int getTotal_quantity() {
        return total_quantity;
    }

    public void setTotal_quantity(int total_quantity) {
        this.total_quantity = total_quantity;
    }

    public int getAvailable_quantity() {
        return available_quantity;
    }

    public void setAvailable_quantity(int available_quantity) {
        this.available_quantity = available_quantity;
    }
}

